/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fri.businessLayer;

import fri.entiry.FrUsermoney;
import java.util.List;
import javax.ejb.Remote;

/**
 *
 * @author NguyenDongUIT
 */
@Remote
public interface UserMoneyBeanRemote {

    List<FrUsermoney> getAllUserMoney();

    List<FrUsermoney> getUserMoneyByUserId(String userId);

    List<FrUsermoney> getUserMoneyByEmail(String email);

    List<FrUsermoney> getUserIdByUserCode(String userCode);

    int addUserMoney(FrUsermoney userMoney);

    int changeUserMoney(FrUsermoney userMoney);

    int subtractUserMoney(String userId, float value, int currencyId);

    FrUsermoney getUserMoneyByUICurrency(String userId, int currencyId);

    boolean checkUserMoneyAvailable(String userId, float value, int currencyId);

    int deleteUserMoney(String idUserMoney);
    
}
